﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Gueei.Gallery.Core.Entities;

namespace Gueei.Gallery.Web.ViewModels
{
	public class TagListViewModel: List<TagViewModel>
	{
	}

	public class TagViewModel
	{
		public string Name { get; set; }
		public int ItemCount { get; set; }
		public static TagViewModel CreateFromTag(Tag tag)
		{
			return new TagViewModel
			       	{
			       		Name = tag.Name,
			       		ItemCount = tag.ItemCount
			       	};
		}
	}
}